<template>
  <el-breadcrumb
    class="breadcrumb"
    separator-class="el-icon-arrow-right"
  >
    <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
    <el-breadcrumb-item
      v-for="(item, index) in data"
      :key="index"
    >{{item}}</el-breadcrumb-item>
  </el-breadcrumb>
</template>

<script>
export default {
  name: "BreadCrumb",
  props: ["data"],
};
</script>

<style lang="less" scoped>
.breadcrumb {
  margin-bottom: 16px;
}
</style>